package com.ushio.gougouwangguo.entity.mysql;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户资源表
 * </p>
 *
 * @author 张文凯
 * @since 2025-09-23
 */
@TableName("user_materials")
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Data
public class UserMaterials implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_materials_id", type = IdType.AUTO)
    private Long userMaterialsId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 资源id
     */
    private Integer materialsId;

    /**
     * 库存
     */
    private Long stock;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建人
     */
    private Long createUser;

    /**
     * 修改人
     */
    private Long updateUser;

    /**
     * 是否启用1是删除0是启用
     */
    private Boolean remove;

}
